import request from '@/utils/request'

//*************路由相关接口*************************

//获取所有路由
export function getAllRoutes() {
  return request({
    url: '/watchdog/zuul/routes'
  })
}

//新增路由
export function addRoute(route) {
  return request({
    url: '/watchdog/zuul/routes',
    method: 'post',
    data: route
  })
}

//更新路由
export function updateRoute(route) {
  return request({
    url: '/watchdog/zuul/routes',
    method: 'put',
    data: route
  })
}

//删除路由
export function deleteRouteById(routeId) {
  return request({
    url: '/watchdog/zuul/routes/' + routeId,
    method: 'delete'
  })
}
